/* ====================================================================
 * (#)Header: RoleServiceImpl.java
 * (#)Revision: 
 * (#)Date Created: 22-Mar-08 12:47:15 AM
 * (#)Created By: Karol Wozniak
 * ====================================================================
 *
 * Copyright (c) 2007 karolak .  All rights reserved.
 *
 * ====================================================================
 * 
 * The software application represented here is the sole property of 
 * karolak. Its unauthorized utilization is expressly prohibited.
 * 
 * ====================================================================
 */
package com.karolak.service.entity.app;

import com.karolak.entity.app.Role;
import com.karolak.query.Criterias;
import com.karolak.service.entity.EntityServiceImpl;
import com.karolak.service.entity.app.RoleService;

/**
 * 
 * <code>RoleServiceImpl</code> is ....
 * 
 * @author <a href="mailto:kwozniak@hotmail.com">Karol Wozniak</a>
 */
public class RoleServiceImpl extends EntityServiceImpl<Role, Integer> implements RoleService {

	public RoleServiceImpl() {
		super(Role.class);
	}

	public Role findByName(String name) {
		Criterias criterias = new Criterias();
		criterias.add("name", name);
		return getDao().find(getPersistentClass(), criterias);
	}
}
